<!--$embed{"header.htm"}-->
<!--$embed{"network_header.htm"}-->

<div id="search" class="h_status">
	
		<div id="m_search"<!--$if{ searchmode == '2'}--> style="display:none;"<!--$end-->>
			<form method="post" action="network.html">
			<input type="text" name="key" value="${key}" size="26" class="t_input" />
			<input type="hidden" name="ac" value="${ac}" />
			<input type="hidden" name="searchmode" value="1" />
			<input type="submit" name="searchsubmit" value="搜索日志" class="submit" />
			<a href="javascript:;" onclick="document.getElementById('m_search').style.display='none';document.getElementById('adv_search').style.display='block'">高级搜索</a>
			</form>
		</div>
		<form method="post" action="network.html">
		<table cellspacing="0" cellpadding="0" class="formtable" id="adv_search"<!--$if{!searchmode || searchmode == '1'}--> style="display:none;"<!--$end-->>
			<tr>
				<th width="60">关键字*</th>
				<td>
					<input type="text" name="key" value="${key}" size="26" class="t_input" />
				</td>
			</tr>
			<tr>
				<th>作者名*</th>
				<td>
					<input type="text" name="username" value="${username}" size="26" class="t_input" />
				</td>
			</tr>
			<tr>
				<th>时间范围</th>
				<td>
					<input type="text" name="starttime" value="${starttime}" size="10" class="t_input" /> ~ <input type="text" name="endtime" value="${endtime}" size="10" class="t_input" />
					格式为 YYYY-MM-DD
				</td>
			</tr>
			<tr>
				<th>搜索方式</th>
				<td>
					<label for="subject"><input id="subject" type="radio" value="subject" name="type"${typearr[subject]}>搜索标题</label>
					<label for="fulltext"><input id="fulltext" type="radio" value="fulltext" name="type"${typearr[fulltext]}>全文搜索</label>
				</td>
			</tr>
			<tr>
				<th>结果排序</th>
				<td>
					<select name="orderby">
						<option value="dateline">发布时间</option>
						<option value="replynum"${orderbyarr['replynum']}>回复数量</option>
						<option value="viewnum"${orderbyarr['viewnum']}>浏览次数</option>
					</select>
					<select name="ascdesc">
						<option value="asc">按升序排列</option>
						<option value="desc"${ascdescarr['desc']}>按降序排列</option>
					</select>
				</td>
			</tr>
			<tr>
				<th>&nbsp;</th>
				<td>
				<input type="hidden" name="ac" value="${ac}" />
				<input type="hidden" name="searchmode" value="2" />
				<input type="submit" name="searchsubmit" value="搜索" class="submit" />
				</td>
			</tr>
		</table>
	</form>
</div>


	<!--$if{ list}-->
	<div class="entry_list">
		<ul>
		<!--$for{value:list}-->
			<li>	
				<div class="avatar48"><a href="space.html?uid=${value.uid}"><img src="<!--${&com.heaven.web.utils.Common.avatar(value.uid,'small')}-->" alt="${_SN[value.uid]}" class="avatar" /></a></div>
				<div class="title">
					<div class="r_option"><a href="cp.html?ac=share&type=blog&id=${value.blogid}" id="a_share_${value.blogid}" onclick="ajaxmenu(event, this.id, 99999,'' , -1)" class="a_share">分享</a></div>
					<h4><a href="space.html?uid=${value.uid}&do=blog&id=${value.blogid}">${value.subject}</a></h4>
					<div><a href="space.html?uid=${value.uid}">${_SN[value.uid]}</a> <span class="time">${value.parsedDateline}</span></div>
				</div>
				<div class="detail image_right l_text s_clear" id="blog_article_${value.blogid}">
					<!--$if{ value.pic}--><p class="image"><a href="space.html?uid=${value.uid}&do=blog&id=${value.blogid}"><img src="${value.pic}" alt="${value.subject}" /></a></p><!--$end-->
					${value.message[0..100]}
				</div>
				<div>
					<!--$if{ value.viewnum}--><a href="space.html?uid=${value.uid}&do=blog&id=${value.blogid}">${value.viewnum} 次阅读</a><span class="pipe">|</span><!--$end-->
					<!--$if{ value.replynum}--><a href="space.html?uid=${value.uid}&do=blog&id=${value.blogid}#comment">${value.replynum} 个评论</a><!--$else-->没有评论<!--$end-->
				</div>
			</li>
		<!--$end-->
		</ul>
	</div>
	<div class="page">
	<!--$if{ multi=='networkpage'}-->仅显示最新发布的 ${count} 个日志<!--$else-->${multi}<!--$end-->
	</div>
	<!--$else-->
	<div class="c_form">没有相应的日志。</div>
	<!--$end-->

<!--$embed{"footer.htm"}-->